{block name=report-classes}
<div class="row">
  <div class="col-sm-12">
    <a href="javascript:void(0);" onClick="exportPageToCSV($(this),$('#print-toplocations'),'toplocations.csv');" class="btn btn-info report-green"><span>Export CSV</span></a>
  </div>
</div>
<div class="row form">
  <div class="col-sm-12">
    <a href="javascript:void(0);" onClick="printArea('print-toplocations');" class="btn btn-info report-green"><span>Print</span></a>
  </div>
</div>
<div id="print-toplocations">
	{foreach $toplocations as $term}
	<div class="row term">
	  <div class="col-sm-12">
	    <h2 class="title">{$term.term_name} - {$term.term_region}<!-- {$ct.agegroup_name} | {$ct.class_start_time|date_format:"%H:%M %p"} - {$ct.class_end_time|date_format:"%H:%M %p"} | {$ct.location_suburb}, {$ct.location_state} --></h2>
	  </div>
	  <div class="col-sm-12">
	    <table class="table table-striped lblue">
	      <thead>
	        <th>Location</th>
	        <th>Total Enrolments</th>
	      </thead>
	      <tbody>
	      {foreach $term.locations as $loc}
	        <tr>
	          <td>{$loc.location_name}</td>
	          <td>{$loc.cnt}</td>
	        </tr>
	      {/foreach}
	      </tbody>
	    </table>
	  </div>
	</div>
	{/foreach}
</div>
{/block} 


